home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / screamin_upstreamin.swf / scripts / DefineSprite_184 / frame_1 / PlaceObject3_68_8 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2012-01-07  |  360b  |  15 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.level > 1)
  3.    {
  4.       if(_Y >= occurrence)
  5.       {
  6.          var occurrence = Math.round(Math.random() * frequency) + 300;
  7.          var xPos = -110 + Math.round(Math.random() * xPosVara);
  8.          _Y = startPos;
  9.          _X = xPos;
  10.          hitObject = "on";
  11.       }
  12.       _Y = _Y + _root.busSpeed / 2;
  13.    }
  14. }
  15.